#!/usr/bin/env python3

from pylab import *

fp = open('weights_dcds.txt', 'w')


# 250个采样点
# @0.198MHz
w_size = 198
scale = 1.3

for cnt in range(w_size):
    for os in range(16):
#        if cnt >= 34 and cnt <= 95:
#            w = 1./62
#        elif cnt >= 124 and cnt <= 186:
#            w = -1./63
#        else:
#            w = 0

        if cnt == 3:
            w = -1./3.225

            # fine tuning
#            if os == 0:
#                w += -0.0
#            elif os == 1:
#                w += -0.0
#            elif os == 2:
#                w += -0.015
#            elif os == 3:
#                w += 0.005
#            elif os == 4:
#                w += -0.02
#            elif os == 5:
#                w += -0.0
#            elif os == 6:
#                w += -0.025
#            elif os == 7:
#                w += -0.0
#            elif os == 8:
#                w += -0.0
#            elif os == 9:
#                w += 0.0
#            elif os == 10:
#                w += -0.0
#            elif os == 11:
#                w += -0.0
#            elif os == 12:
#                w += -0.01
#            elif os == 13:
#                w += -0.01
#            elif os == 14:
#                w += -0.02
#            elif os == 15:
#                w += -0.0
        elif cnt >= 60 and cnt <= 95:
            w = 1./36 * scale
        elif cnt >= 124 and cnt <= 186:
            w = -1./63 * scale
        else:
            w = 0

        fp.write('%12.8f '%(w)) 

    fp.write('\n')
fp.close()



